package com.wk.springframework.context.support;

import java.util.Arrays;

public class ClassPathXmlApplicationContext extends AbstractXmlApplicationContext {

    public ClassPathXmlApplicationContext(String[] configs) {
        this.configs = configs;
        refresh();
    }

    private String[] configs;


    public ClassPathXmlApplicationContext() {
    }

    public ClassPathXmlApplicationContext(String config) {
        this(Arrays.asList(config).toArray(new String[0]));
    }




    @Override
    protected String[] getConfigLocations() {
        return this.configs;
    }
}
